package com.gf.user.dao;

import com.gf.base.type.Activity;
import com.gf.base.type.TicketType;
import com.gf.user.model.Ticket;

public interface TicketDao {
	
	/**
	 * 通过UUID查询
	 * @param uuid
	 * @return
	 */
	public Ticket queryByUuid(String uuid);

	/**
	 * 插入
	 * @param userId
	 * @param uuid
	 * @return
	 */
	public long insert(long userId,String uuid,TicketType ticketType);
	
	
	/**
	 * 更改tickit的状态
	 * @param id
	 * @param activity
	 */
	public void updateActivity(long id, Activity activity);
	
	
	/**
	 * 通过ID得到TICKET
	 * @param id
	 * @return
	 */
	public Ticket queryById(long id);
}
